package com.shop.cart.service;


import com.base.common.entity.bean.Cart;
import java.util.List;

/**
 * 功能描述：购物车service
*/
public interface CartService {

    public List<Cart> addItemsToCartList(List<Cart> cartList, Long itemId, Integer num);

    public void addRedisCart(List<Cart> cartList, Long id);

    public List<Cart> findRedisCartList(String userId);

    public List<Cart> mergeCart(List<Cart> redisCartList, List<Cart> cookieCartList);

    public List<Cart> updateOption(List<Cart> redisCartList, Long id, String type, Boolean bool);
}
